
package com.sausageking.shared;

import javax.persistence.Id;
import com.googlecode.objectify.Key;

public class LoginToken {

  @Id
  private Long id;

  //TODO(haibozhao): Use a randomly generated string/key for the login token.
  
  private Key<Consumer> owner;

  public void setId(Long id) {
    this.id = id;
  }

  public Long getId() {
    return id;
  }
  
  public Key<Consumer> getOwner() {
    return owner;
  }
  
  public void setOwner(Consumer owner) {
    this.owner = new Key<Consumer>(Consumer.class, owner.getEmail());
  }
}